<template>
	<view class="container bg-w">
		<view class="header uni-flex uni-row flex-between">
			<uni-nav-bar title="子项基础信息">
				<template slot='left'>
					<view class="flex width-100 ">
						<i class='iconfont iconfanhui' @click='goBack()'></i>
					</view>
				</template>
			</uni-nav-bar>
		</view>
		<view class="basic-information position-r-top">
			<view class="project-overview">
				<text class="order">项目概况</text>
				<uni-list-item  title="子项编号" :rightText="BasicInfo.subProjectNumber"></uni-list-item>
				<uni-list-item  title="子项名称" :rightText="BasicInfo.subProjectName"></uni-list-item>
				<uni-list-item  title="子项类型" :rightText="BasicInfo.typeDesc"></uni-list-item>
				<uni-list-item  title="地址" :rightText="`${BasicInfo.completeDistrict}${BasicInfo.address}`"></uni-list-item>
				<uni-list-item  title="工序" :rightText="BasicInfo.processName"></uni-list-item>
				<uni-list-item  title="分组" :rightText="BasicInfo.deptName"></uni-list-item>
				<uni-list-item  title="状态" :rightText="BasicInfo.statusDesc"></uni-list-item>
				<uni-list-item  title="备注" :rightText="BasicInfo.remarks"></uni-list-item>
			</view>
		</view>
	</view>
</template>

<script>
	import { subProjectInfo } from '@/common/api/ConstructionReport.js'
	export default {
		data() {
			return {
				BasicInfo:{},
			}
		},
		onLoad(option) {
			subProjectInfo(option.subProjectId).then(res => {
				if(res.data){
					this.BasicInfo = res.data
				}
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
